package io.devops

def init(){
    properties([
        parameters([
            string(defaultValue:'devops-java-sample', description:'应用名称', name: 'appName',trim: true, required: true ),
            string(defaultValue:'https://github.com/Feeeenng/devops-java-sample.git', description:'应用git地址', name: 'srcUrl',trim: true, required: true ),
            string(defaultValue:'master', description:'分支名称', name: 'branchName',trim: true, required: true ),
            choice(defaultValue:'java', choices: ['java', 'python', 'node-frontend', 'node-server'],
                     description:'构建应用类型', name: 'buildType', trim: true, required: true ),


        ])  
        ])
}